package com.mi.minal.common.service.file;//package com.infoland.virusmarket.module._common;
//
//import com.infoland.virusmarket.module.admin.service.AdminStageService;
//import com.infoland.virusmarket.module.admin.service.impl.AdminCardServiceImpl;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
///**
// * 刷新计时器
// */
//@Component
//@Slf4j
//public class RefreshTimer {
//    //    fixedDelay 方法结束后 继续循环
//    //    fixedRate  无论方法是否结束 继续循环
//    @Autowired
//    AdminCardServiceImpl cardAdminService;
//    @Autowired
//    AdminStageService stageService;
//
//    /**
//     * 奖池刷新
//     */
//    @Scheduled(fixedDelay = 5 * 1000)
//    public void sendMessage() throws Exception {
//        //刷新刷卡专区奖池
//        cardAdminService.refreshPool();
//        //刷新分期专区奖池
//        stageService.refreshPool();
//    }
//
//}
